{include file="kuerp/common/menu" /}
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li class="layui-this">{:__('Basic_serial_entry')}</li>
            <li>{:__('Batch_serial_entry')}</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
            </div>
            <div class="layui-tab-item more_period row">
                <div class="col-xs-6 col-sm-3 col-md-3 col-lg-3">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Prefix')}</label>
                        <div class="col-xs-12 col-sm-9">
                            <input id="c-prefix" class="form-control" type="text" name="prefix" value="" placeholder="{:__('Prefix_can_be_empty')}">
                        </div>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-3 col-md-3 col-lg-3">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Start_number')}</label>
                        <div class="col-xs-12 col-sm-9">
                            <input id="c-start" class="form-control" name="start" type="text" value="001" placeholder="{:__('Start_number')}">
                        </div>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-3 col-md-3 col-lg-3">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Increment')}</label>
                        <div class="col-xs-12 col-sm-9">
                            <input id="c-incremental" class="form-control" name="incremental" type="number" value="1" placeholder="{:__('Increment')}">
                        </div>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-2 col-md-2 col-lg-2">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Quantity')}</label>
                        <div class="col-xs-12 col-sm-9">
                            <input id="c-number" class="form-control" name="number" type="number" value="1" placeholder="{:__('Quantity')}">
                        </div>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-1 col-md-1 col-lg-1">
                    <div class="form-group" style="padding-top: 5px;">
                        <a class="ui-btn ui-btn-sp" id="addAuto">{:__('Add')}</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="list list_form">
        <table id="serial_table">
            <tr>
                <th></th><th><span class="must">*</span>{:__('Serial_number')}</th><th>{:__('Note')}</th>
            </tr>
            <tbody id="serial_tbody">
            {php}for($a=0;$a<8;$a++){ {/php}
            <tr>
                <td><div class="btn"><span class="add"><i class="fa fa-plus"></i></span><span class="del"><i class="fa fa-trash"></i></span></div></td>
                <td><div><input type="text" class="ipt serial_ipt" name="stock[serial][]"></div></td>
                <td><div><input type="text" class="ipt" name="stock[remark][]"></div></td>
            </tr>
            {php}}{/php}
            </tbody>
        </table>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
